import request from '@/utils/request'

// 查询住院结账明细列表 (分页)
export function selectPageInpAcctDetail(query) {
    return request({
        url: '/business/inpAcctDetail/selectPage',
        method: 'get',
        params: query
    })
}

// 查询住院结账明细列表 (不分页)
export function listInpAcctDetail(query) {
    return request({
        url: '/business/inpAcctDetail/list',
        method: 'get',
        params: query
    })
}

// 查询住院结账明细详细
export function getInpAcctDetail(inpAcctDetailId) {
    return request({
        url: '/business/inpAcctDetail/' + inpAcctDetailId,
        method: 'get'
    })
}

// 新增住院结账明细
export function addInpAcctDetail(data) {
    return request({
        url: '/business/inpAcctDetail',
        method: 'post',
        data: data
    })
}

// 修改住院结账明细
export function updateInpAcctDetail(data) {
    return request({
        url: '/business/inpAcctDetail',
        method: 'put',
        data: data
    })
}

// 删除住院结账明细
export function delInpAcctDetail(inpAcctDetailId) {
    return request({
        url: '/business/inpAcctDetail/' + inpAcctDetailId,
        method: 'delete'
    })
}
